package com.he1618;

import java.math.BigInteger;

public class BigIntApp {

    public static void main(String[] args) {
        BigInteger bigInteger = new BigInteger("0", 2);

        for (int i = 0; i < 15; i++) {
            bigInteger = bigInteger.or(bigInteger.setBit(i));
            System.out.println(bigInteger.testBit(i));

        }
        System.out.println(bigInteger);

    }
}
